package com.example.stream.demostream.generator;


import com.zhe.generator.MybatisPlusGenerator;
import com.zhe.mybatis.entity.BaseEntity;

/**
 * @author: author
 * @date: 2021/3/25
 */
public class GeneratorUtil {

    public static void main(String[] args) {
        MybatisPlusGenerator generator = new MybatisPlusGenerator();
        generator.setAuthor("chenxiaohua")
                .setOutputDir("/src/main")
                .setParentPackage("com.example.stream.demostream")
                .setModuleName("")
                .setUrl("jdbc:mysql://localhost:3306/emp?useSSL=false&&zeroDateTimeBehavior=convertToNull")
                .setUsername("root")
                .setPassword("root")
                .setFileOverride(false)
                .setOpen(true)
                .setEnableController(true)
                .setEnableService(true)
                .setEnableMapper(true)
                .setEnableEntity(true)
                .setEnableXml(true)
                .setSuperEntityClass(BaseEntity.class)
                .setTables(new String[]{"sys_manager"

                });
        generator.generate();
    }
}
